<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="body">
            <c:if test="#{entityDependenceService.entitySatisfied('definitionofdone')}">
            <table>
                <td>
                    <h:panelGroup id="defcrmessagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateDefinitionofdoneLabel_dodbezeichnung}" for="dodbezeichnung" />
                    <h:inputText id="dodbezeichnung" value="#{definitionofdoneController.selected.dodbezeichnung}" title="#{bundle.CreateDefinitionofdoneTitle_dodbezeichnung}" required="true" requiredMessage="#{bundle.CreateDefinitionofdoneRequiredMessage_dodbezeichnung}"/>
                    <h:outputLabel value="#{bundle.CreateDefinitionofdoneLabel_dodbeschreibung}" for="dodbeschreibung" />
                    <h:inputTextarea id="dodbeschreibung" value="#{definitionofdoneController.selected.dodbeschreibung}" title="#{bundle.CreateDefinitionofdoneTitle_dodbeschreibung}" />
                </h:panelGrid>
                <br />
                <a4j:commandButton render="dodlistpanel" action="#{definitionofdoneController.create}" value="#{bundle.CreateDefinitionofdoneSaveLink}"/>
            </h:form>
                    <a4j:commandButton render="dodlistpanel" value="Refresh"/>
                    <a4j:outputPanel id="dodlistpanel">
                    #{definitionofdoneController.recreateModel()}
                        <ui:include src="List.xhtml"/>
                </a4j:outputPanel>
                </td>
                <td>
                    <a4j:outputPanel id="dodeditpanel">
                        <ui:include src="Edit.xhtml"/>
                </a4j:outputPanel>
                </td>
            </table>
            </c:if>
        </ui:define>
    </ui:composition>

</html>
